#coding=utf-8
import threading

def countdown(n):
    while n>0:
        n -=1
count = 100

if __name__=='__main1__':
    for i in xrange(10):
        t = threading.Thread(target=countdown, args=(count,))
        t.start()

    print 'threading stop ......'


def do(event):
    print 'start...'
    event.wait()
    print 'execute...'


if __name__=='__main__':
    event_obj = threading.Event()
    for i in range(10):
        t = threading.Thread(target=do, args=(event_obj,))
        t.start()

    event_obj.clear()
    input = raw_input('input:')
    if input =='true':
        event_obj.set()
    print('haha')
    for i in range(100):
        print i
